package com.mayikt.security3.mapper;



import com.mayikt.security3.beans.Permission;
import com.mayikt.security3.beans.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserMapper extends Mapper<User> {
	// 查询用户信息

	User findByUsername(@Param("userName") String userName);

	// 查询用户的权限

	List<Permission> findPermissionByUsername(@Param("userName") String userName);
}
